@include('admin.common.header')

<!--tab nav start-->
<section class="panel">
    <header class="panel-heading tab-bg-dark-navy-blue ">
        <ul class="nav nav-tabs">
            <li @if ($_active['_action'] == 'list')  class="active" @endif>
                <a href="/admin/manufactor">供应商列表</a>
            </li>
            <li @if ($_active['_action'] == 'add')  class="active" @endif>
                <a href="/admin/manufactor/add">添加供应商</a>
            </li>
        </ul>
    </header>
    <div class="panel-body">
        <div class="tab-content">
            <div class="row cmxform form-horizontal tasi-form">
                <div class="col-lg-6">
                    <section class="panel">
                        <div class="panel-body">
                            <input class=" form-control" value="{{ $info->id }}" name="id"  type="hidden" />
                            <div class="form-group ">
                                <label for="lastname" class="control-label col-lg-2">供应商名称</label>
                                <div class="col-lg-10">
                                    <input class=" form-control" value="{{ $info->name }}" id="edit_name" name="name" placeholder="供应商名称" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="lastname" class="control-label col-lg-2">供应商地址</label>
                                <div class="col-lg-10">
                                    <input class=" form-control" value="{{ $info->address }}" id="edit_address" name="address" placeholder="供应商地址" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="username" class="control-label col-lg-2">联系电话</label>
                                <div class="col-lg-10">
                                    <input class="form-control " value="{{ $info->mobile }}" id="edit_mobile" name="mobile" placeholder="" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="password" class="control-label col-lg-2">联系人</label>
                                <div class="col-lg-10">
                                    <input class="form-control " value="{{ $info->contact }}" id="edit_contact" name="contact" placeholder="" type="text" />
                                </div>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <div class="col-lg-12 text-center">
                <button class="btn btn-danger form-submit" type="button">修改此供应商</button>
            </div>
        </div>
    </div>
</section>
<!--tab nav start-->



<script>
    require(['app/manufactor' , 'common/common'] , function (app , common) {
        app.ajaxUpdateManufactor();
        common.radioToggle();
    });
</script>

@include('admin.common.footer')